import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex); //vue的插件机制
const store = new Vuex.Store({
	state: { //存放状态
		sysInfo: {}
	},
	mutations: {
		SET_SYS_INFO(state) {
			uni.getSystemInfo({
				success: res => {
					state.sysInfo = res
				}
			})
		}
	}
})
export default store